<?php 
  $this->dojo()->enable()
               ->requireModule('dijit.layout.TabContainer')
               ->requireModule('dijit.layout.ContentPane')
               ->setDjConfigOption('parseOnLoad', true) ;
  $this->tabContainer()->captureStart('tab1', array(), array('style' => 'width: 800px; height: 500px;'));
  $this->contentPane()->captureStart('panel1', array(), array('title' => 'Listado'));               
?>
<table>
<thead>
  <tr>
    <td>ID</td>
    <td>Nombre</td>
    <td>Apellidos</td>
    <td>Email</td>
    <td>Pa&iacute;s</td>
    <td>Ver</td>
    <td>Editar</td>
    <td>Acceso</td>
  </tr>
</thead>
<tbody>
<?php 
foreach ($this->users as $user) 
{
?>
<tr>
  <td><?php echo $user->id; ?></td>
  <td><?php echo $user->first_name; ?></td>
  <td><?php echo $user->last_name; ?></td>
  <td><?php echo $user->username; ?></td>
  <td><?php echo $user->getPais()->getName(); ?></td>
  <td><a href="<?php echo $this->url(array('id' => $user->id, 'controller' => 'users', 'action' => 'view')) ?>">Ver</a></td>
  <td></td>
  <td></td>
</tr>
<?php   
}
?>
</tbody>
</table>
<?php 
  echo $this->contentPane()->captureEnd('panel1');
  echo $this->tabContainer()->captureEnd('tab1');
?>